x11: Set actions on drag
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jul 2018 20:50:06 +0000 (16:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jul 2018 20:50:06 +0000 (16:50 -0400)
We should pass the actions to the newly created
drag object in drag_begin.

gdk/x11/gdkdrag-x11.c

index b04b77c596cae5282c7332f0b410dae802ad93ef..6e72ba890cf3f4aae968221d4c96387b1235a18c 100644 (file)
@@ -2085,9 +2085,10 @@ _gdk_x11_surface_drag_begin (GdkSurface         *surface,
   ipc_surface = gdk_surface_new_popup (display, &(GdkRectangle) { -99, -99, 1, 1 });
 
   drag = (GdkDrag *) g_object_new (GDK_TYPE_X11_DRAG,
+                                   "surface", ipc_surface,
                                    "device", device,
                                    "content", content,
-                                   "surface", ipc_surface,
+                                   "actions", actions,
                                    NULL);
   x11_drag = GDK_X11_DRAG (drag);